package com.flower.mapper;

import com.flower.pojo.Flower;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlowerMapper {
    public int flowerCount(@Param("flowerName")String flowerName,@Param("flowerNumber")Integer flowerNumber);
    public List<Flower> selectFlower(@Param("flowerName")String flowerName,@Param("flowerNumber")Integer flowerNumber,@Param("pageBegin") Integer pageBegin,@Param("pageSize")Integer PageSize);

    public int insertFlower(Flower flower);

    public List<Flower> detailFlower(@Param("flowerId")Integer flowerId);
    public int updateFlower(Flower flower);

    public int deleteFlower(int id);
}
